<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>显示指定日期</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding-top: 100px;
            background-color: #f0f0f0;
        }
        .date-box {
            display: inline-block;
            padding: 20px 40px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            font-size: 24px;
        }
    </style>
</head>
<body>
    <div class="date-box" id="dateDisplay">
        <!-- 日期将显示在这里 -->
    </div>

    <script>
        // ✅ 你可以在这里修改指定日期
        const specifiedDate = new Date('2025-12-31');

        // 格式化日期为 YYYY-MM-DD
        function formatDate(date) {
            const y = date.getFullYear();
            const m = String(date.getMonth() + 1).padStart(2, '0');
            const d = String(date.getDate()).padStart(2, '0');
            return `${y}-${m}-${d}`;
        }

        document.getElementById('dateDisplay').innerText = `指定日期：${formatDate(specifiedDate)}`;
    </script>
</body>
</html>